package com.example.testapp.activity.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.testapp.R;

/**
 * Created by l on 2016/7/2.
 */
public class FoundFragment extends BaseFragment {

    private static final String ARG_PARAM1 = "param1";
    private String  mParam1;
    private TextView titleTextView;

    public FoundFragment newInstance(String param1) {
        FoundFragment fragment = new FoundFragment();
        Bundle args = new Bundle();
        args.putString(ARG_PARAM1, param1);
        fragment.setArguments(args);
        return  fragment;
    }

    public FoundFragment(){

    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if(getArguments() != null){
            mParam1 = getArguments().getString(ARG_PARAM1);
        }
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_content, container, false);
        //titleTextView = (TextView)view.findViewById(R.id.title_txtView);
       // titleTextView.setText(mParam1);
        return view;
    }
}
